package cn.com.tarotframework.server.oauth.convert;

import cn.com.tarotframework.server.oauth.dto.UserDto;
import cn.com.tarotframework.server.oauth.po.UserPo;
import cn.com.tarotframework.server.oauth.vo.UserSearchVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * copyright (C), 2022, 塔罗牌基础架构
 *
 * @program tarot-core
 * @description 用户实体转换类
 * @author Jiang Xincan
 * @version 0.0.1
 * @create 2024/01/20 18:54
 **/
@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    UserPo to(UserDto userDto);

    UserSearchVo to(UserPo userPo);

    List<UserSearchVo> to(List<UserPo> lists);

}
